package com.qk.common.exception;

import com.qk.common.Result;
import com.qk.common.enums.Code;

public class CommonException extends RuntimeException {
    public CommonException(Code code) {
        super(code.getMsg());
    }

    public static void throwCommonException(Code code) {
        throw new CommonException(code);
    }
}
